FROM centos
RUN yum install -y httpd  wget unzip python2-PyMySQL expect
RUN yum install -y php-fpm php-* --skip-broken to work around the problem
RUN sed -i 's/#ServerName www.example.com:80/ServerName localhost:80/g' /etc/httpd/conf/httpd.conf
RUN echo systemctl enable php-fpm >> /root/start.sh
RUN echo systemctl enable httpd >> /root/start.sh
RUN echo systemctl restart httpd >> /root/start.sh
RUN echo systemctl restart php-fpm >> /root/start.sh
